import server from '@/utils/request.js'

export default {
    gitListAll(data = {}) {
        return server({
            url: "/api/product/getDetails",
            method: "POST",
            data: data
        })
    },

    gitSwaip(data = {}) {
        return server({
            url: "/api/product/getDetailsPicture",
            method: "POST",
            data: data
        })
    },
    //添加商品
    getAddData(data = {}) {
        return server({
            url: "/api/user/collect/addCollect",
            method: "POST",
            data: data
        })
    },
    //获取商品数据
    getAllsData(data = {}) {
        return server({
            url: "/api/user/collect/getCollect",
            method: "POST",
            data: data
        })
    },
        //删除商品数据
        getdelData(data = {}) {
            return server({
                url: "/api/user/collect/deleteCollect",
                method: "POST",
                data: data
            })
        },
}